﻿using AutoPoco.Engine;

namespace Autopoco.Contrib.DataSources
{
    public class SequentialLongSource : AbstractRelatedDataSource<long>
    {
        private long _current;
        public SequentialLongSource(long current)
        {
            _current = current;
        }
        public SequentialLongSource()
            : this(1)
        {
        }
        public override long Next(IGenerationSession session)
        {
            return _current++;
        }

        public override void Setup(RelationContext context)
        {
            
        }
    }
}